package com.situ.web.dao;

import com.situ.web.pojo.entity.Banji;
import com.situ.web.pojo.query.BanjiQuery;
import com.situ.web.pojo.vo.BanjiCountVO;

import java.util.List;

public interface IBanjiDao {

    List<Banji> selectAll();

    List<BanjiCountVO> selectBanjiCount();

    List<Banji> selectByPage(int offset, Integer limit);
    List<Banji> selectByPage(BanjiQuery banjiQuery);

    int selectTotalCount();
    int selectTotalCount(BanjiQuery banjiQuery);

    void deleteById(int id);

    void add(Banji banji);

    Banji selectById(int id);

    void update(Banji banji);
}
